package com.xyz.mqtt;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

@Configuration
public class MqttConfig {

    @Value("${spring.mqtt.hostUrl}")
    private String hostUrl;

    @Value("${spring.mqtt.username}")
    private String username;

    @Value("${spring.mqtt.password}")
    private String password;

    @Value("${spring.mqtt.client-id}")
    private String clientId;

    @Value("${spring.mqtt.timeout}")
    private int timeout;

    @Value("${spring.mqtt.keep-alive}")
    private int keepAlive;

    @Value("${spring.mqtt.clean-session}")
    private Boolean cleanSession;

    @Value("${spring.mqtt.reconnect}")
    private Boolean reconnect;

    @Value("${spring.mqtt.open}")
    private Boolean open;

    @Value("${spring.mqtt.qos}")
    private Integer qos;

    @Value("${spring.mqtt.subscribe-topic-alarm}")
    private String subscribeTopicAlarm;

    @Value("${spring.mqtt.subscribe-topic-runtime-runningTime}")
    private String subscribeTopicRuntimeRunningTime;

    @Value("${spring.mqtt.subscribe-topic-runtime-deviceStatus}")
    private String subscribeTopicRuntimeDeviceStatus;

    public String getHostUrl() {
        return hostUrl;
    }

    public void setHostUrl(String hostUrl) {
        this.hostUrl = hostUrl;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getClientId() {
        return clientId;
    }

    public void setClientId(String clientId) {
        this.clientId = clientId;
    }

    public int getTimeout() {
        return timeout;
    }

    public void setTimeout(int timeout) {
        this.timeout = timeout;
    }

    public int getKeepAlive() {
        return keepAlive;
    }

    public void setKeepAlive(int keepAlive) {
        this.keepAlive = keepAlive;
    }

    public Boolean getCleanSession() {
        return cleanSession;
    }

    public void setCleanSession(Boolean cleanSession) {
        this.cleanSession = cleanSession;
    }

    public Boolean getReconnect() {
        return reconnect;
    }

    public void setReconnect(Boolean reconnect) {
        this.reconnect = reconnect;
    }

    public Boolean getOpen() {
        return open;
    }

    public void setOpen(Boolean open) {
        this.open = open;
    }

    public Integer getQos() {
        return qos;
    }

    public void setQos(Integer qos) {
        this.qos = qos;
    }

    public String getSubscribeTopicAlarm() {
        return subscribeTopicAlarm;
    }

    public void setSubscribeTopicAlarm(String subscribeTopicAlarm) {
        this.subscribeTopicAlarm = subscribeTopicAlarm;
    }

    public String getSubscribeTopicRuntimeRunningTime() {
        return subscribeTopicRuntimeRunningTime;
    }

    public void setSubscribeTopicRuntimeRunningTime(String subscribeTopicRuntimeRunningTime) {
        this.subscribeTopicRuntimeRunningTime = subscribeTopicRuntimeRunningTime;
    }

    public String getSubscribeTopicRuntimeDeviceStatus() {
        return subscribeTopicRuntimeDeviceStatus;
    }

    public void setSubscribeTopicRuntimeDeviceStatus(String subscribeTopicRuntimeDeviceStatus) {
        this.subscribeTopicRuntimeDeviceStatus = subscribeTopicRuntimeDeviceStatus;
    }
    
}
